Use echo
to add content to the constructed page. Add tags to the expression to form HTML elements.
Hello World
Use //
or /*...*/
to add comments to your code.
Hello World
Use 'single quotes' for literal strings, "double quotes" for variable substitution.
My name is Jill
My name is $name.
Quoted material can span multiple lines in your source code for convenience (remember that on display the browser ignores newlines and whitespace).
I'm having spam spam spam spam spam spam spam baked beans spam spam spam and spam! -Monty Python
The heredoc operator <<< can also be used for multiple lines in your source code for convenience (remember that on display the browser ignores newlines and whitespace).
I'm having spam spam spam spam spam spam spam baked beans spam spam spam and spam! -Monty Python
Multiple line strings can also be assigned to variables using either method.
I'm having spam spam spam spam spam spam spam baked beans spam spam spam and spam! -Monty Python
Multiple line strings can also be assigned to variables using either method.
I'm having spam spam spam spam spam spam spam baked beans spam spam spam and spam! -Monty Python
Create a Browser object to get the browser type. The Browser class used was downloaded here from GitHub.
Note that files can be included in your source code, and that if statements can be constructed similar to other languages.
The $_SERVER array shows what can be obtainde from the system regarding the browser type.
Your browser is version
for loops have the same format as Java or C++.
while loops have the same format as Java or C++.
for each loops are helpful to go through everything in an array.
Note that the output is also creating list items, one unordered and one ordered. Note that the unset function releases the memory used by the array.
Reload the page to shuffle the lists.